3.6.29 \(\int \frac {(a+b \tanh ^{-1}(c x)) (d+e \log (1-c^2 x^2))}{x^3} \, dx\) [529]

Optimal. Leaf size=157 \[ -a c^2 e \log (x)+\frac {1}{2} (a+b) c^2 e \log (1-c x)+\frac {1}{2} (a-b) c^2 e \log (1+c x)-\frac {b c \left (d+e \log \left (1-c^2 x^2\right )\right )}{2 x}+\frac {1}{2} b c^2 \tanh ^{-1}(c x) \left (d+e \log \left (1-c^2 x^2\right )\right )-\frac {\left (a+b \tanh ^{-1}(c x)\right ) \left (d+e \log \left (1-c^2 x^2\right )\right )}{2 x^2}+\frac {1}{2} b c^2 e \text {PolyLog}(2,-c x)-\frac {1}{2} b c^2 e \text {PolyLog}(2,c x) \]

[Out]

-a*c^2*e*ln(x)+1/2*(a+b)*c^2*e*ln(-c*x+1)+1/2*(a-b)*c^2*e*ln(c*x+1)-1/2*b*c*(d+e*ln(-c^2*x^2+1))/x+1/2*b*c^2*a
rctanh(c*x)*(d+e*ln(-c^2*x^2+1))-1/2*(a+b*arctanh(c*x))*(d+e*ln(-c^2*x^2+1))/x^2+1/2*b*c^2*e*polylog(2,-c*x)-1
/2*b*c^2*e*polylog(2,c*x)

________________________________________________________________________________________

Rubi [A]
time = 0.10, antiderivative size = 157, normalized size of antiderivative = 1.00, number of steps used = 5, number of rules used = 6, integrand size = 27, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.222, Rules used = {6037, 331, 212, 6232, 815, 6031} \begin {gather*} -\frac {\left (a+b \tanh ^{-1}(c x)\right ) \left (e \log \left (1-c^2 x^2\right )+d\right )}{2 x^2}+\frac {1}{2} c^2 e (a+b) \log (1-c x)+\frac {1}{2} c^2 e (a-b) \log (c x+1)-a c^2 e \log (x)-\frac {b c \left (e \log \left (1-c^2 x^2\right )+d\right )}{2 x}+\frac {1}{2} b c^2 \tanh ^{-1}(c x) \left (e \log \left (1-c^2 x^2\right )+d\right )+\frac {1}{2} b c^2 e \text {Li}_2(-c x)-\frac {1}{2} b c^2 e \text {Li}_2(c x) \end {gather*}

Antiderivative was successfully verified.

[In]

Int[((a + b*ArcTanh[c*x])*(d + e*Log[1 - c^2*x^2]))/x^3,x]

[Out]

-(a*c^2*e*Log[x]) + ((a + b)*c^2*e*Log[1 - c*x])/2 + ((a - b)*c^2*e*Log[1 + c*x])/2 - (b*c*(d + e*Log[1 - c^2*
x^2]))/(2*x) + (b*c^2*ArcTanh[c*x]*(d + e*Log[1 - c^2*x^2]))/2 - ((a + b*ArcTanh[c*x])*(d + e*Log[1 - c^2*x^2]
))/(2*x^2) + (b*c^2*e*PolyLog[2, -(c*x)])/2 - (b*c^2*e*PolyLog[2, c*x])/2

Rule 212

Int[((a_) + (b_.)*(x_)^2)^(-1), x_Symbol] :> Simp[(1/(Rt[a, 2]*Rt[-b, 2]))*ArcTanh[Rt[-b, 2]*(x/Rt[a, 2])], x]
 /; FreeQ[{a, b}, x] && NegQ[a/b] && (GtQ[a, 0] || LtQ[b, 0])

Rule 331

Int[((c_.)*(x_))^(m_)*((a_) + (b_.)*(x_)^(n_))^(p_), x_Symbol] :> Simp[(c*x)^(m + 1)*((a + b*x^n)^(p + 1)/(a*c
*(m + 1))), x] - Dist[b*((m + n*(p + 1) + 1)/(a*c^n*(m + 1))), Int[(c*x)^(m + n)*(a + b*x^n)^p, x], x] /; Free
Q[{a, b, c, p}, x] && IGtQ[n, 0] && LtQ[m, -1] && IntBinomialQ[a, b, c, n, m, p, x]

Rule 815

Int[(((d_.) + (e_.)*(x_))^(m_)*((f_.) + (g_.)*(x_)))/((a_) + (c_.)*(x_)^2), x_Symbol] :> Int[ExpandIntegrand[(
d + e*x)^m*((f + g*x)/(a + c*x^2)), x], x] /; FreeQ[{a, c, d, e, f, g}, x] && NeQ[c*d^2 + a*e^2, 0] && Integer
Q[m]

Rule 6031

Int[((a_.) + ArcTanh[(c_.)*(x_)]*(b_.))/(x_), x_Symbol] :> Simp[a*Log[x], x] + (-Simp[(b/2)*PolyLog[2, (-c)*x]
, x] + Simp[(b/2)*PolyLog[2, c*x], x]) /; FreeQ[{a, b, c}, x]

Rule 6037

Int[((a_.) + ArcTanh[(c_.)*(x_)^(n_.)]*(b_.))^(p_.)*(x_)^(m_.), x_Symbol] :> Simp[x^(m + 1)*((a + b*ArcTanh[c*
x^n])^p/(m + 1)), x] - Dist[b*c*n*(p/(m + 1)), Int[x^(m + n)*((a + b*ArcTanh[c*x^n])^(p - 1)/(1 - c^2*x^(2*n))
), x], x] /; FreeQ[{a, b, c, m, n}, x] && IGtQ[p, 0] && (EqQ[p, 1] || (EqQ[n, 1] && IntegerQ[m])) && NeQ[m, -1
]

Rule 6232

Int[((a_.) + ArcTanh[(c_.)*(x_)]*(b_.))*((d_.) + Log[(f_.) + (g_.)*(x_)^2]*(e_.))*(x_)^(m_.), x_Symbol] :> Wit
h[{u = IntHide[x^m*(a + b*ArcTanh[c*x]), x]}, Dist[d + e*Log[f + g*x^2], u, x] - Dist[2*e*g, Int[ExpandIntegra
nd[x*(u/(f + g*x^2)), x], x], x]] /; FreeQ[{a, b, c, d, e, f, g}, x] && IntegerQ[m] && NeQ[m, -1]

Rubi steps

\begin {align*} \int \frac {\left (a+b \tanh ^{-1}(c x)\right ) \left (d+e \log \left (1-c^2 x^2\right )\right )}{x^3} \, dx &=-\frac {b c \left (d+e \log \left (1-c^2 x^2\right )\right )}{2 x}+\frac {1}{2} b c^2 \tanh ^{-1}(c x) \left (d+e \log \left (1-c^2 x^2\right )\right )-\frac {\left (a+b \tanh ^{-1}(c x)\right ) \left (d+e \log \left (1-c^2 x^2\right )\right )}{2 x^2}+\left (2 c^2 e\right ) \int \left (\frac {a+b c x}{2 x \left (-1+c^2 x^2\right )}-\frac {b \tanh ^{-1}(c x)}{2 x}\right ) \, dx\\ &=-\frac {b c \left (d+e \log \left (1-c^2 x^2\right )\right )}{2 x}+\frac {1}{2} b c^2 \tanh ^{-1}(c x) \left (d+e \log \left (1-c^2 x^2\right )\right )-\frac {\left (a+b \tanh ^{-1}(c x)\right ) \left (d+e \log \left (1-c^2 x^2\right )\right )}{2 x^2}+\left (c^2 e\right ) \int \frac {a+b c x}{x \left (-1+c^2 x^2\right )} \, dx-\left (b c^2 e\right ) \int \frac {\tanh ^{-1}(c x)}{x} \, dx\\ &=-\frac {b c \left (d+e \log \left (1-c^2 x^2\right )\right )}{2 x}+\frac {1}{2} b c^2 \tanh ^{-1}(c x) \left (d+e \log \left (1-c^2 x^2\right )\right )-\frac {\left (a+b \tanh ^{-1}(c x)\right ) \left (d+e \log \left (1-c^2 x^2\right )\right )}{2 x^2}+\frac {1}{2} b c^2 e \text {Li}_2(-c x)-\frac {1}{2} b c^2 e \text {Li}_2(c x)+\left (c^2 e\right ) \int \left (-\frac {a}{x}+\frac {(a+b) c}{2 (-1+c x)}+\frac {(a-b) c}{2 (1+c x)}\right ) \, dx\\ &=-a c^2 e \log (x)+\frac {1}{2} (a+b) c^2 e \log (1-c x)+\frac {1}{2} (a-b) c^2 e \log (1+c x)-\frac {b c \left (d+e \log \left (1-c^2 x^2\right )\right )}{2 x}+\frac {1}{2} b c^2 \tanh ^{-1}(c x) \left (d+e \log \left (1-c^2 x^2\right )\right )-\frac {\left (a+b \tanh ^{-1}(c x)\right ) \left (d+e \log \left (1-c^2 x^2\right )\right )}{2 x^2}+\frac {1}{2} b c^2 e \text {Li}_2(-c x)-\frac {1}{2} b c^2 e \text {Li}_2(c x)\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]
time = 0.19, size = 152, normalized size = 0.97 \begin {gather*} \frac {1}{2} \left (-\frac {a d}{x^2}-2 a c^2 e \log (x)+(a+b) c^2 e \log (1-c x)+(a-b) c^2 e \log (1+c x)-\frac {b d \left (2 \tanh ^{-1}(c x)+c x (2+c x \log (1-c x)-c x \log (1+c x))\right )}{2 x^2}-\frac {e \left (a+b c x+\left (b-b c^2 x^2\right ) \tanh ^{-1}(c x)\right ) \log \left (1-c^2 x^2\right )}{x^2}+b c^2 e (\text {PolyLog}(2,-c x)-\text {PolyLog}(2,c x))\right ) \end {gather*}

Antiderivative was successfully verified.

[In]

Integrate[((a + b*ArcTanh[c*x])*(d + e*Log[1 - c^2*x^2]))/x^3,x]

[Out]

(-((a*d)/x^2) - 2*a*c^2*e*Log[x] + (a + b)*c^2*e*Log[1 - c*x] + (a - b)*c^2*e*Log[1 + c*x] - (b*d*(2*ArcTanh[c
*x] + c*x*(2 + c*x*Log[1 - c*x] - c*x*Log[1 + c*x])))/(2*x^2) - (e*(a + b*c*x + (b - b*c^2*x^2)*ArcTanh[c*x])*
Log[1 - c^2*x^2])/x^2 + b*c^2*e*(PolyLog[2, -(c*x)] - PolyLog[2, c*x]))/2

________________________________________________________________________________________

Maple [F]
time = 17.42, size = 0, normalized size = 0.00 \[\int \frac {\left (a +b \arctanh \left (c x \right )\right ) \left (d +e \ln \left (-c^{2} x^{2}+1\right )\right )}{x^{3}}\, dx\]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((a+b*arctanh(c*x))*(d+e*ln(-c^2*x^2+1))/x^3,x)

[Out]

int((a+b*arctanh(c*x))*(d+e*ln(-c^2*x^2+1))/x^3,x)

________________________________________________________________________________________

Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((a+b*arctanh(c*x))*(d+e*log(-c^2*x^2+1))/x^3,x, algorithm="maxima")

[Out]

1/4*((c*log(c*x + 1) - c*log(c*x - 1) - 2/x)*c - 2*arctanh(c*x)/x^2)*b*d + 1/2*(c^2*(log(c^2*x^2 - 1) - log(x^
2)) - log(-c^2*x^2 + 1)/x^2)*a*e + 1/4*b*(log(-c*x + 1)^2/x^2 - 2*integrate(-((c*x - 1)*log(c*x + 1)^2 - c*x*l
og(-c*x + 1))/(c*x^4 - x^3), x))*e - 1/2*a*d/x^2

________________________________________________________________________________________

Fricas [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((a+b*arctanh(c*x))*(d+e*log(-c^2*x^2+1))/x^3,x, algorithm="fricas")

[Out]

integral((b*d*arctanh(c*x) + a*d + (b*arctanh(c*x)*e + a*e)*log(-c^2*x^2 + 1))/x^3, x)

________________________________________________________________________________________

Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {\left (a + b \operatorname {atanh}{\left (c x \right )}\right ) \left (d + e \log {\left (- c^{2} x^{2} + 1 \right )}\right )}{x^{3}}\, dx \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((a+b*atanh(c*x))*(d+e*ln(-c**2*x**2+1))/x**3,x)

[Out]

Integral((a + b*atanh(c*x))*(d + e*log(-c**2*x**2 + 1))/x**3, x)

________________________________________________________________________________________

Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((a+b*arctanh(c*x))*(d+e*log(-c^2*x^2+1))/x^3,x, algorithm="giac")

[Out]

integrate((b*arctanh(c*x) + a)*(e*log(-c^2*x^2 + 1) + d)/x^3, x)

________________________________________________________________________________________

Mupad [F]
time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} \int \frac {\left (a+b\,\mathrm {atanh}\left (c\,x\right )\right )\,\left (d+e\,\ln \left (1-c^2\,x^2\right )\right )}{x^3} \,d x \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(((a + b*atanh(c*x))*(d + e*log(1 - c^2*x^2)))/x^3,x)

[Out]

int(((a + b*atanh(c*x))*(d + e*log(1 - c^2*x^2)))/x^3, x)

________________________________________________________________________________________